package com.example.waibao.service.impl;


import com.example.waibao.entity.rank.RankDO;
import com.example.waibao.dao.RankMapper;
import com.example.waibao.entity.rank.rank_score;
import com.example.waibao.entity.rank.speciality_rank_score;
import com.example.waibao.entity.student;
import com.example.waibao.mapper.RankMapper2;
import com.example.waibao.service.RankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RankServiceImpl implements RankService {


    @Autowired
    private RankMapper rankMapper;

    @Autowired
    private RankMapper2 rankMapper2;

    @Override
    public List<rank_score> getAllRank(int school_id, int speciality_id) {

        return rankMapper2.getAllRank(school_id, speciality_id);
    }

    @Override
    public List<speciality_rank_score> getAllRank2(int schoolId) {
        return rankMapper2.getAllRank2(schoolId);
    }
}
